<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class M_bengkel_post extends CI_Model {

	function __construct(){
		parent::__construct();
	}

    // Meta Data
	function update_meta($id){ // Return Boolean
        $data_meta['user_id']         = $detail->user_id;
        $data_meta['first_name']      = $this->input->post('first_name');
        $data_meta['last_name']       = $this->input->post('last_name');
        $data_meta['gender']          = $this->input->post('gender');
        $data_meta['No_KTP']          = $this->input->post('No_KTP');
        $data_meta['alamat']          = $this->input->post('alamat');
        $data_meta['Tempat_Lahir']    = $this->input->post('Tempat_Lahir');
        $data_meta['Tanggal_Lahir']   = $this->input->post('Tanggal_Lahir');
        $data_meta['Agama']           = $this->input->post('Agama');
        $data_meta['Status_Perkawinan'] = $this->input->post('Status_Perkawinan');
        $data_meta['Pekerjaan']       = $this->input->post('Pekerjaan');
        $data_meta['Kewarganegaraan'] = $this->input->post('Kewarganegaraan');
        $data_meta['No_Telpon']       = $this->input->post('No_Telpon');
        
        $this->db->where('user_id', $id);
        return $this->db->update('frum_meta', $data);
    }
}